import http from '@/utils/http'
export function LoginNet(data: LoginParams): Promise<LoginResult> {
  return http.post('/auth/login', data)
}

export interface LoginParams {
  email: string
  password: string
}

export interface LoginResult {
  avatar: string
  nickName: string
  status: number
  token: string
  userId: string
}
